Peru came back from behind to beat Bolivia 3-1 and take a step towards clearing the group stage of the Copa America.
Marcelo Martins had opened scoring at the Maracana just inside the half hour on a VAR-awarded penalty, getting past Peru keeper Pedro Gallese on the right.
Bolivia appeared to be heading into half-time with the advantage, but Peru's Paolo Guerrero - having placed himself perfectly in the middle of their defence - used his pace to snake past keeper Carlos Lampe and found home.
Peru earned another goal soon after play resumed, this time Guerrero assisting Jefferson Farfan who headed in a cross from the striker.
Bolivia were held off from levelling up for the rest of the match, fumbling several opportunities in front of Gallese.
Their defeat was further sealed by Edison Flores after six minutes of injury time, the winger brilliantly challenging three Bolivians before reaching the net with his left foot.
Peru will play their Brazilian hosts on Saturday in Sao Paulo.