A Missouri man accused of torturing a young woman he kept as a sex slave has pleaded guilty to having sex with her when she was underage.

Edward Bagley entered his plea Tuesday in a deal with prosecutors. He agreed to a 20-year prison sentence that still must approved by a federal judge.

Bagley was originally charged in September 2010 with 11 federal counts, including conspiracy, sex trafficking, forced labor trafficking and using an interstate facility to entice a minor into illegal sexual conduct.

Prosecutors say the woman was 16 in 2002 when she moved into the now 45-year-old Bagley's mobile home on the outskirts of Lebanon, Mo. She lived there until 2009.

Four other men and Bagley's wife have pleaded guilty to conspiracy and await sentencing.