Barnsley have moved up to 11th in League One after seeing off Colchester United at Oakwell this afternoon.
Sam Winnall gave Barnsley the perfect start to the match when he drilled the ball into the far corner from a tight angle to open the scoring.
Colchester equalised through Sanchez Watt, who scrambled home after a ball into the box fell kindly for him.
It was an exciting opening and Peter Ramage looked to have continued the drama after heading into the net, but his goal was ruled out for offside.
Conor Hourihane then fired over for Barnsley before Elliott Hewitt dragged a shot wide for the visitors.
After the break, Barnsley were awarded a penalty when Devante Cole was brought down in the box.
Hourihane restored his side's advantage by stepping up and scoring the spot kick for his tenth goal of the campaign.
Ramage made it three for the hosts after getting on the end of Hourihane's ball into the box before Freddie Sears pulled a goal back for Colchester late on.
Barnsley held firm, however, to secure a 3-2 win and all three points.