A popular Chinese writer drafting a book about a novelist who got away with murder was himself arrested by authorities for a 1995 quadruple homicide, according to state and independent media.

Liu Yongbiao, 53, was arrested on Friday at his home, reports said.

“I’ve been waiting for you here this entire time,” he reportedly told police, according to state-run media, as well as the outlets The Sixth Tone and The Paper.

Yongbiao is known for a romance novel published in 2014 which was quickly adapted into a 50-episode TV show in China.

But in the preface to 2010’s “The Guilty Secret,” he wrote that he intended to “create a novel about a female writer who has killed many people, yet the cases remain unsolved.”

In reality, the four brutal murders in a guesthouse in Huzhou, Zheijiang province, remained unsolved for 22 years—since the slaughter on the night of Nov. 29, 1995.

The two owners of the Huzhou guesthouse, their 13-year-old grandson and a guest at the home were all killed with repeated blows to the head from a blunt object, authorities told state-run newspaper The China Daily. Two people apparently robbed the guest who was visiting from Shandong province, then killed him. They then beat the couple and the child to death to cover up the crime and their ill-gotten gains, they said.

Chinese authorities, who have built up DNA databases to unprecedented size and scope with mandatory sampling, apparently made the breakthrough this month.

Although further details were not available, the break that led to Yongbiao the writer apparently followed a new round of DNA analysis on the evidence at the crime scene.

State media reported that no monitoring systems were at the boarding home. But detectives did get facial sketches culled from the recollections of witnesses – who also said the pair had accents from Anhui province.

Forensic evidence included some used towels, fingerprints, shoe prints and other traces at the scene.

“We reopened the investigation several times over the years,” said Shen Lianjian, the deputy director of the Huzhou public security bureau, to the The China Daily. “There was no progress until we used new DNA technology when we reopened the case again in June.”

The police official also added they checked approximately 60,000 fingerprint files in 15 provinces and cities to find the match.

A second man, identified as a 64-year-old named Wang Mouming, who was friends with the writer, was also arrested Friday, but in a neighboring province.