WARREN, Minn.-A man was ordered to spend almost two years behind bars for holding a woman against her will, holding a machete to her face and threatening to kill her and her son in northwest Minnesota.

Armando Jesus Pedraza, 43, of Oslo, Minn., was sentenced Tuesday, April 17, in Marshall County District Court to spend 26 months in prison after he pleaded guilty to a felony charge of terroristic threats. On Nov. 30, Pedraza locked a woman in his room for 24 hours and wouldn't let her out, according to charging documents. The victim told investigators Pedraza threatened to kill her and her child. The child said he could hear his mother being beaten.

The woman was able to escape when Pedraza left the home to take out the trash.

The woman admitted to doing meth and said Pedraza also was high on the drug during the incident, court documents said.

Several other charges were dropped. Pedraza was credited 138 days for time served.