A Texas pastor was busted on child pornography charges after he brought his computer to a Best Buy store.

Employees contacted police Thursday after finding what appeared to be child pornography on a device brought into the store in Hurst, Texas.

Police said they discovered the computer belonged to 78-year-old James Rankin, who is an associate pastor at Bellevue Baptist Church.

Rankin was charged with possession of child pornography, which is a third-degree felony, according to a Hurst Police Department news release.

The church has been notified of Rankin’s arrest, police said. He still is listed as staff on the church’s website.

“James was a retired pastor before being called to his present ministry. He served churches in Tennessee, Fort Worth and Amarillo, Texas,” according to his staff bio.

Hurst is being held at Hurst Municipal Jail. His bond was set at $5,000.