Derry City earned a confidence building victory over Shamrock Rovers in Saturday night's Premier Division game at the Tallaght Stadium.
Stephen McLaughlin headed in a Rory Patterson cross in the sixth minute.
Patterson scored the second from the penalty spot after he had been fouled inside the area by home goalkeeper Oscar Jansson.
Barry McNamee finished neatly in the 47th minute, before Thomas Stewart slotted low into the corner late on.
Former Derry player Stewart beat Ger Doherty with his shot two minutes into added time.
McNamee's goal saw him latch onto McLaughlin's defence splitting pass and find the net.
The Candystripes will face St Patrick's Athletic in their final league game on Friday night and then enjoy a two-week break before playing the same opposition in the FAI Cup final on 4 November.
Meanwhile Sligo Rovers clinched the Premier Division title with a 3-2 win over St Pat's on Saturday night.