Alfred Dewayne Brown, who has been fighting for five years with the state of Texas for compensation for his wrongful imprisonment, has won a Texas Supreme Court ruling that will force the state to cough up the money.

The Supreme Court ruled that Brown is entitled to his wrongful imprisonment compensation. It ordered the comptroller to withdraw the denial of the funds, and to instead compensate Brown for his time behind bars.