Federal prosecutors say that the man charged in the Charleston church shootings used the internet to scope out Emanuel AME church and was trying get away to Nashville, Tennessee, when he was arrested.

The new details are included in filings in which prosecutors outline how the charges against Dylann Roof involve interstate commerce. The defense wants the charges tossed, saying the shootings had no relation to interstate commerce as required under federal law to charge hate crimes.

Prosecutors note that Roof drove on an interstate highway and had a GPS set for Nashville when arrested in North Carolina the day after the shootings on June 17, 2015.

The filings also said a phone call was made from Roof's home to the church about four months before the shootings.