CHARLESTON, W.Va. (AP) — A West Virginia man has been sentenced to more than three years in federal prison for retaliating against a government witness in a criminal case involving the defendant’s brother.

David Stanley, 46, of the Raleigh County community of Bolt, was sentenced in federal court Monday for sending several intimidating and threatening messages through social media to a witness in a case against Stanley’s brother, Charles Stanley, court records showed.

Charles Stanley, 52, of Shady Spring, was sentenced in June to more than two years in prison on charges related to the theft of mining equipment from an energy facility.