An Oregon man who threatened on social media to kill former President Barack Obama and shoot FBI agents was sentenced Friday to 63 months in federal prison.

John Roos, 62, of Medford, Ore., had threatened on Twitter to kill Obama and his family on Facebook and to shoot FBI agents with hunting rifles. According to the Mail Tribune's review of court documents, Roos said he did not intend to carry out the threats but that they were meant to "blow off steam." According to an affidavit written by FBI Special Agent Jeffrey Gray, and reported by the Oregonian, Roos said that given the chance he would "punch Obama in the nose" because Obama "pisses him off."

"Violent social media posts are every bit as serious as those made in other venues," U.S. Attorney Billy Williams said in a statement. "We will continue to vigorously investigate and prosecute similar crimes."

Roos pleaded guilty to the threats and to possessing an unregistered explosive device. Federal agents arrested Roos on April 28, 2016, and found a loaded semi-automatic pistol in his vehicle and several pipe bombs in his home. According to a review of a federal complaint by the Oregonian, Roos was arrested outside the Veterans Affairs Southern Oregon Rehabilitation Center and Clinic in White City, where he was a patient.

Roos was sentenced by U.S. District Court Judge Michael McShane, who also ordered that he serve three years of post-prison supervision upon his release.