A regional court on Friday decided to substitute the 21-month prison sentence given to FC Barcelona’s star forward Lionel Messi for tax evasion with a fine.

The Barcelona court said it had made its ruling, which imposed a 252,000-euro ($287,575) fine on the Argentine player, following a recommendation by the prosecution, reports Efe.

Messi had been convicted of three tax crimes with a seven-month prison sentence handed to him for each count.

The decision replaced each of the 630 days of imprisonment with a fine of 400 euros ($456.28).

Messi joined FC Barcelona way back in 2001 from Newell’s Old Boys. The Argentina player made his first team debut against Espanyol in 2004 and has since gone on to capture 30 trophies with the club.

He won eight Spanish La Liga titles and four Champions League crowns.

Messi is also the top scorer in the club’s history (507) and in La Liga history (349), and has been named the world’s best player on five occasions.