Preston North End have finalised the signing of Ross Wallace from Sunderland on a permanent basis.
Wallace has been on loan at Deepdale since the start of the season after finding himself out of the first-team picture at Sunderland.
He scored three goals in 26 appearances during his loan spell and had expressed an interest in a long-term deal with the Championship club.
Alan Irvine was also eager to hang on to the 23-year-old, who has signed a four-and-a-half year contract after the two clubs agreed an undisclosed fee.
"I was always hopeful of staying at Preston," Wallace told the club's official website.
"The loan deal was until the end of the season, but we have managed to get a deal done.
"The last few months have been good. I've enjoyed my time at Deepdale and I am delighted to be here for the next four-and-a-half years.
"I came to Preston to play games and I have done that. We have a good team and a good bunch of lads here and hopefully within the time I am here we can achieve our aim, which is to get to the Premiership."