Updated

A convicted Cuban spy has received a reduced prison sentence of nearly 22 years after his original life term was tossed out by an appeals court.

A federal judge in Miami imposed the new sentence Tuesday on 50-year-old Antonio Guerrero. It is nearly two years longer than an agreement reached by prosecutors and defense lawyers.

Guerrero is a member of the so-called Cuban Five who were convicted in 2001 of spying in the U.S. They are considered heroes in Cuba.

An appeals court last year threw out the life sentence as unjustifiably harsh because no U.S. secrets were stolen. Under the deal, Guerrero has about 11 more years to serve.

The appeals court vacated sentences for two other Cuban spies. They will be resentenced at a later date.