Manchester City scored two late goals, including a 90th-minute winner from Raheem Sterling, to beat Schalke 3-2 in the last 16 of the Champions League on Wednesday on another night when the video assistant referee was a talking point.

After Leroy Sane equalized for 10-man City in the 85th with a curling free kick against his former club, Sterling got the better of Bastian Oczipka after chasing a long clearance from goalkeeper Ederson Moraes and calmly finished into the bottom corner.

Trailing to Sergio Aguero's 19th-minute goal, Schalke needed help from the VAR in scoring two penalties during a chaotic seven-minute span at the end of the first half.

Manchester City goalkeeper Ederson, left, Manchester City defender Kyle Walker celebrate their side third goal by Manchester City midfielder Raheem Sterling during the first leg, round of sixteen, Champions League soccer match between Schalke 04 and Manchester City at Veltins Arena in Gelsenkirchen, Germany, Wednesday Feb. 20, 2019. (AP PhotoMartin Meissner)

Manchester City goalkeeper Ederson, left, Manchester City defender Kyle Walker celebrate their side third goal by Manchester City midfielder Raheem Sterling during the first leg, round of sixteen, Champions League soccer match between Schalke 04 and Manchester City at Veltins Arena in Gelsenkirchen, Germany, Wednesday Feb. 20, 2019. (AP PhotoMartin Meissner)

The German team was awarded the first of its penalties when Nicolas Otamendi was adjudged to have handled a shot from Daniel Caligiuri. After a delay of nearly four minutes — the referee wasn't helped by the pitchside monitor reportedly not working — Nabil Bentaleb converted from the spot in the 38th.

The midfielder did so again in the 45th and this time the decision was more straightforward after Fernandinho, playing as a makeshift center back, tugged back Salif Sane at a free kick.

Otamendi was handed a second yellow card in the 68th for a foul on substitute Guido Burgstaller but City still managed to recover in Gelsenkirchen.

Manchester City midfielder Leroy Sane, second left, celebrates after scoring his side's second goal during the first leg, round of sixteen, Champions League soccer match between Schalke 04 and Manchester City at Veltins Arena in Gelsenkirchen, Germany, Wednesday Feb. 20, 2019. (AP PhotoMartin Meissner)

Manchester City midfielder Leroy Sane, second left, celebrates after scoring his side's second goal during the first leg, round of sixteen, Champions League soccer match between Schalke 04 and Manchester City at Veltins Arena in Gelsenkirchen, Germany, Wednesday Feb. 20, 2019. (AP PhotoMartin Meissner)

The English champions are still in the hunt for trophies on four fronts this season. They are top of the Premier League, play in the final of the English League Cup on Sunday, and are into the quarterfinals of the FA Cup.

More AP soccer: https://apnews.com/apf-Soccer and https://twitter.com/AP_Sports

Manchester City midfielder David Silva, right, argues with referee Carlos Del Cerro of Spain as he checking a VAR during the first leg, round of sixteen, Champions League soccer match between Schalke 04 and Manchester City at Veltins Arena in Gelsenkirchen, Germany, Wednesday Feb. 20, 2019. (AP PhotoMartin Meissner)

Manchester City midfielder David Silva, right, argues with referee Carlos Del Cerro of Spain as he checking a VAR during the first leg, round of sixteen, Champions League soccer match between Schalke 04 and Manchester City at Veltins Arena in Gelsenkirchen, Germany, Wednesday Feb. 20, 2019. (AP PhotoMartin Meissner)