Javi Martinez headed Bayern Munich into the knockout stages of the Champions League after Callum McGregor looked to have denied them victory in a dramatic 2-1 win over Celtic on Tuesday.
McGregor's equaliser in the 74th minute appeared set to make Bayern wait for their place in the next round until Martinez leapt to meet a David Alaba cross just three minutes later.
Kingsley Coman had given Bayern a first-half lead after a disastrous defensive lapse involving Dedryck Boyata and Craig Gordon allowed him to fire into an empty net.
Three points for Bayern, combined with Group B leaders Paris Saint-Germain's victory over Anderlecht, sees the Bundesliga champions assured of a top-two finish, while Brendan Rodgers' men are eliminated.
The result was perhaps harsh on Celtic, with little to choose between the sides on the night.