The man accused of killing four people in a Nashville Waffle House used to send his father text messages in which he punctuated everyday chitchat with delusional rants.

Police say 29-year-old Travis Reinking was nearly naked, only wearing a green jacket, when he opened fire outside the restaurant on April 22 and then stormed inside. Police have said there would have been far more casualties if it weren't for a quick-thinking restaurant patron who wrestled the AR-15 rifle away from the gunman.

By the time of the shooting, Reinking's erratic behavior had already come to the attention of law enforcement, including the Tazewell County Sheriff's Office in Illinois, where he lived part-time.

According to several incident reports, Reinking believed the singer Taylor Swift was stalking and harassing him, including hacking into his computer and phone. He believed the police and his family were part of the conspiracy, and his delusions went back to at least August 2014.

The texts between father and son that were filed as evidence in federal court this week begin in April 2017, just a year before the shooting, as Reinking discussed making money by selling a patent. Friendly back-and-forth texts about work and dinner continued until May 21, 2017, when Reinking told his father he was going to start keeping his phone off most of the time and would go to the library when he wanted to use the internet.

"These people are still listening and reading stuff on my phone over the internet," he wrote. Then, "I don't want to be told gay things inadvertently when I'm trying to learn about something else, and they have been saying stupid stuff like I'm a transsexual, and things like that."

A few minutes later he wrote that he was "thinking about going to the ball diamonds to practice later. U want to come."

On May 23, 2017, Reinking wrote, "These people told me that you guys signed a non disclosure agreement, to hide it from me. If your helping them, please stop no matter what it cost you. I don't think you fully realize what these people have been doing to me. ... These people tried to kill me."

A few weeks later, his father texted him about a job and he texted back, "You're going to hell for what you are doing. Don't say nobody warned you. You are the same type of people who nailed Jesus to the cross. They acted out of fear because of what they didn't understand."

But the next day he sent a text that read, "Their is a red jeep Cherokee for sale at the corner of Baer and 9 right now for 6k. Looks newer and nice."

On June 23, 2017, Reinking texted that he was moving out of state for work, "So you don't have to worry about me ever again."

In July 2017, Reinking was arrested by the U.S. Secret Service at the White House, where officials say he was seeking an audience with President Trump, but he was soon released. No texts refer to the arrest.

On July 31, 2017, Reinking apologized to his father for "venting," writing, "I feel terrible if I'm accusing you of something your not involved in. I don't know what to believe anymore."

But the following day he sent a long, profanity-laced rant calling his father a "psychopath" and writing, "You are actively assaulting me, with organized crime, and then being dishonest about doing it."

A week later, he sent a text about insurance for a truck.

On Nov. 12, 2017, Reinking sent the message, "Dad, I got a place out of town now, I'm going to need to get my firearms back from you somehow."

Jeffrey Reinking had stored his son's rifles and handgun in his gun safe after state police revoked Travis Reinking's Illinois firearms owner identification. The official reason for the revocation was that he was a non-resident, although officials have said the action came at the request of federal agents after the White House arrest.

At least three separate lawsuits by family members of the victims fault Jeffrey Reinking for negligence because he returned the guns to his son.

Jeffrey Reinking's attorney said in a deposition filed on Monday that a criminal investigation of the matter is ongoing. But the document also says Reinking did not believe he had the authority to keep his son's guns once Travis Reinking demanded them back.

The last texts between father and son came on Nov. 19, 2017, when Jeffrey Reinking invited his son to come over for breakfast after church.

After that, Travis Reinking left town and his father did not know for certain where he was until he heard about the April shooting, Jeffrey Reinking said in the deposition.

After the attack, Travis Reinking was ordered to receive treatment in a mental facility for schizophrenia. By October, prosecutors said mental health officials had concluded Reinking was competent to face charges in court.

Jeffrey Reinking sent several texts that went unanswered between the time his son left town and the shooting, including one on Jan. 10, 2018, that reads, "Mom and I are wondering if everything is ok. We haven't heard from you. And we are getting concerned."