The federal government will be paying a retired soldier $50,000 to settle his lawsuit over swallowing needles in a sandwich purchased at a Burger King on a Hawaii Army base.

Clark Bartholomew, of Loudoun County, Virginia, filed the lawsuit in 2011 claiming one needle pierced his tongue when he bit into a burger and another lodged in his small intestine.

The settlement was reached in February with U.S. Army and Air Force Exchange, which operates the Schofield Barracks franchise.

According to a recording of the court hearing discussing settlement terms and obtained by The Associated Press Monday, the government is also agreeing to waive $8,500 in sanctions that a judge imposed when Bartholomew didn't attend one of the settlement conferences.

He also won't have to pay his $11,000 hospital bill.