Robert Dear was inspired by previous abortion clinic attackers and the promise of being met at the gates of heaven by aborted fetuses who would thank him, according to court documents related to the Planned Parenthood shooting in Colorado Springs last November.

Dear has admitted to taking over the clinic and killing three people, none of whom worked there. The documents, which contain chilling details, were released this week to media outlets that had petitioned the Colorado Supreme Court for months.

Dear, who is charged with 179 criminal counts, thought his actions “saved lives of other unborn fetuses.” He was particularly incensed over allegations that Planned Parenthood clinics across the country were supposedly selling “baby parts”—claims that circulated after anti-abortion activists released heavily edited videos last year, which became a campaign talking point for Republican presidential candidates.

Along with the three people killed in the November attack, Dear also injured nine people using, among other weapons, four Soviet-style SKS semi-automatic rifles, according to court documents. Police also found a shotgun, a rifle, and two handguns in his truck. From within the building, Dear also shot at propane tanks in the parking lot, hoping they would explode, the documents reveal. Before the standoff with police even began, Dear approached a woman outside the clinic and told her, “You shouldn’t have come here today,” before shooting her multiple times in the right arm, according to the court documents.