PORTLAND, Maine (AP) — A shipyard worker who set fire to the USS Miami because he wanted to go home and ended up causing $450 million in damage has been sentenced to prison for a little more than 17 years. He also has been ordered to pay $400 million in restitution.

The sentence imposed Friday on Casey James Fury followed a plea agreement that limited his time in federal prison to roughly 15 to 19 years.

The 25-year-old Fury, formerly of Portsmouth, N.H., admitted setting the May 23 fire while the nuclear submarine was in dry dock at Portsmouth Naval Shipyard in Kittery, Maine. He said he needed to go home because he was suffering from anxiety and had no more vacation or sick leave.

The Navy intends to repair the Los Angeles-class attack sub.

Join our Newsletter for the latest news right to your inbox