Bristol City have signed Stephen Pearson on a permanent basis while agreeing a fee for Richard Foster.
After arriving on loan at Ashton Gate in November, Pearson has now left Derby to sign with City until the end of the season.
The 29-year-old midfielder, who began his career with Motherwell, has impressed during nine starts for the Robins, scoring two goals.
The Scotland international had become surplus to requirements at Pride Park after making a £750,000 move from Celtic in January 2007.
"It's taken one or two days longer than we would have hoped but we're delighted to have got that one done," manager Derek McInnes told the club's official website.
More to come
"He's signed a short-term deal until the end of the season. He's done well for us and I still think there's more to come from him.
"I'm glad we've got his services for the rest of the campaign."
City have also confirmed they have agreed an undisclosed fee for Aberdeen's club captain Richard Foster.
The 26-year-old now has to agree to personal terms and undergo a medical before the move is completed so he won't be available for Saturday's FA Cup tie against Crawley.
The utility player has made over 250 appearances for Aberdeen since turning professional in 2003 and spent last season on loan with Rangers, playing 24 games as they won the Scottish title.