U.S. Attorney Daniel Bogden said a grand jury on Wednesday charged Michael Steven Sandford with disrupting an official function and two firearms counts that, together, could get Sandford up to 30 years in prison.

Sandford’s arraignment was scheduled July 6 in U.S. District Court in Las Vegas. He remains in federal custody.

His lawyer didn’t immediately respond Wednesday to a message for comment.

Federal agents say Sandford told them he drove from California to kill Trump, and he went to a Las Vegas gun range to learn to shoot the day before Trump appeared June 18 at the Treasure Island hotel-casino.