A Nashville man faces up to five years in prison after pleading guilty to making online threats against law enforcement officers.

Robert Ellis Waddey was indicted earlier this year for posting menacing pictures on Instagram. One was of him holding a pistol with a state trooper’s car in the background. Others were of police officers shot and bleeding on the street. Captions included “only a dead cop is a good cop.”

The U.S. Attorney for Middle Tennessee says his office reviews every threat and act of violence against law enforcement officers and brings federal charges against those found to have violated federal law.

According to the terms of the plea agreement, Waddey will also forfeit 13 handguns, four assault rifles and a shotgun. He is scheduled to be sentenced in October.

Over the next few months, all 1,300 officers in the Metro Nashville Police Department, as well as new recruits, will take a six-hour course to help them identify their own cultural blind spots. The training sessions start Thursday.