Dundee moved second in the Scottish First Division after beating Queen of the South.
Jake Hyde finished well after being found by Steven Milne to give the hosts an eighth-minute lead.
Nicky Riley slotted home Dundee's second from Ryan Conroy's cross after 25 minutes.
Queens were reduced to 10 men two minutes later when Kevin Holt received a second booking.
But the visitors pulled a goal back 10 minutes into the second half as Chris Higgins' headed Scott McLaughlin's cross into the net.
And Riley became the second man to be red-carded after he also picked up a second caution as both sides finished a man down.
Dundee: Douglas, Irvine, Weston, McGregor, Lockwood, Riley, Rae, O'Donnell (Benedictis 46), Conroy, Hyde (Elliot 73), Milne (McCluskey 82). Subs Not Used: Gibson, McKeown.
Sent Off: Riley (56). Booked: Riley, Lockwood.
Goals: Hyde 8, Riley 25.
Queen of South: Robinson, Craig Reid, Black (Brighton 85), Higgins (Clark 78), Holt, Johnston, McKenna, McLaughlin, Carmichael, Smith, Simmons (Alan Reid 29). Subs Not Used: McKenzie, McCusker.
Sent Off: Holt (27). Booked: Holt.
Goals: Higgins 55.
Ref: Charlie Richmond