Keith Hill is to remain as manager of Rochdale after signing a three-year contract with the League Two club.
Hill initially agreed to stay until the end of the season, but
"You don't realise what you've got until it's gone and that's certainly the case with Keith," chairman Chris Dunphy told the club website.
"In the period of time that he has been back at the club we have all seen a change in the way that the team plays football.
"Keith's hard work and commitment is now bearing fruit with positive results on the pitch. We're all starting to watch Rochdale with a smile on our faces."
Dale, who lie 15th in the table, have taken 22 points from the 16 games since Hill replaced John Coleman.
During his first spell at Spotland, Hill led Rochdale into League One in 2010 and then guided them to ninth place the following season, the joint-highest finish in the club's history, before leaving to join Barnsley.
and within a month he was back at Rochdale as Coleman's successor.
"I didn't want to be out of the game," Hill told BBC Late Kick Off prior to signing his new deal. "I didn't like being sat on my settee.
"I got advised maybe not to take the job at Rochdale but I'm really glad I did. It's given me my enthusiasm back and the belief in the players is there.
"We've and I see a really good core of young players to develop the future for Rochdale, so I'm pleased. I'm really ambitious for Rochdale and we will be successful."