Mahamadou Diarra has re-signed for Fulham, in a deal that will last until the end of the season, according to ESPN.

The Malian midfielder left the Cottagers at the end of the 2012/13 season, when then manager Martin Jol decided not to renew Diarra’s contract, making him join 11 other out of contract players in leaving Craven Cottage last summer.

Diarra, who had played for Real Madrid and Monaco before his first stint at Fulham, has rejoined the club after “worked relentlessly to regain full fitness,” according to the club. Felix Magath is hoping that the midfielder can lift Fulham off the bottom of the Premier League table.

His pay will be determined by how many appearances he makes for Magath’s side, with only 7 Premier League games remaining this season. Diarra scored just one goal from 19 Premier League appearances, netting in a 3-0 win at Bolton in April 2012.

But now the Malian is back to try and bolster the struggling Cottagers, who still cannot escape the relegation zone despite being on their 3rd manager of this campaign alone. The German has won just one of his 5 Fulham matches so far since taking over from Rene Meulensteen, who was sacked in February.