It had been months since Legion assisted Shepard with stopping the Collectors and helping them with the suicide mission. During that time, Legion remained silent and didn't try to contact the Commander. Shepard will need all the help they can get with the reaper threat, a constant struggle.
Legion had regained control of itself and started to combat the Heretics and the Old Machine. Legion knows that the Geth are capable of more than being mindless robots that get shot at and deserve more than constantly being at war with the Quarians. However, some complications prevent peace from being accomplished. There's going to be hell to pay.
Legion's trying to escape the ship of the Heretics, having already gunned down a few of his fellow Geth brethren to survive. Within seconds, Legion hears gunfire, but it's not from him. The robot takes notice of a familiar face being present. Commander Shepard is standing right in front of them. "Shepard, Commander. We have been expecting you." Legion was curious about what Shepard's next move would be.