Nicky Maynard's last-minute goal proved to be the difference in Bristol City's 2-1 triumph at Barnsley this afternoon.
Midfielder Albert Adomah scored his third goal of the season to put the visitors ahead after 15 minutes.
The Robins held their lead throughout the remainder of the first half, but were unable to keep the home side out in the second half. With 15 minutes of normal time to go, striker Craig Davies put the ball into the bottom corner to get back to level terms.
However, Derek McInnes's side continued to fight until the last minute. Adomah found the former Crewe man with seconds to go, allowing him beat keeper Luke Steele with a shot into the top corner to seal the win.