VLORE, Albania — Even goats and a dog couldn't distract Mads Pedersen.
The third stage of the Giro d'Italia all went to plan for Pedersen, who won a bunch sprint to reclaim the leader's pink jersey with his second victory in this year's race.
Pedersen, who rides for Lidl-Trek, edged Corbin Strong by half a wheel at the end of the hilly 160-kilometer (99-mile) leg that started and finished in the Albanian coastal city of Vlore.
Orluis Aula was third.
Pedersen also won the opening stage on Friday but had seen pre-race favorite Primoz Roglic take the pink jersey from him on Saturday.
Pedersen has moved back into pink, ahead of two more sprint stages back in Italy. The Danish cyclist has a nine-second lead over Roglic and is 14 seconds ahead of Mathias Vacek.
''Wow, to have two stage victories already and now back in the pink, that's exactly what we wanted today,'' Pedersen said. "This was the plan this morning.
''We wanted to put a good pace on the long climb, to control it for ourselves and give me a chance to breathe there so I didn't need to go over the limit. Everyone from the team did a super amazing job on the climb and before. And then it was about controlling as far as we could."