Linfield moved up to second place in the Premiership by beating Ballymena.
Stephen Lowry fired in the opener in the seventh minute and Sammy Morrow finished from close range to add to the lead a minute later.
Allan Jenkins lobbed the ball over Ross Glendinning after being put through by Matthew Tipton after 25 minutes.
Andy Waterworth found the net from Aaron Burns's cross on 37, then Tipton fired home a re-taken penalty on 70 after his initial effort was saved.
Referee Ross Dunlop ordered that the spot-kick be taken a second time as some Linfield players had encroached into the penalty area.
The Blues began brightly and Lowry latched onto Waterworth's through ball to score the opener from eight yards.
Morrow shot home from three yards and Waterworth had the ball in the net but his effort was ruled out for offside.
Jenkins's goal gave United a lifeline but Waterworth's strike looked to have secured the points for Warren Feeney's side.
The Linfield centre forward skimmed the top of the bar from Kirk Millar's cross, but Tipton's penalty reduced his side's deficit again.
Ballymena pressed hard for a late equaliser but Ross Glendinning denied Neal Gawley with a fantastic save and Burns cleared a Tony Kane attempt off the line in added time.