In the two days before the attacks, he had twice admitted himself voluntarily to a psychiatric hospital. However, on each occasion he had been allowed to leave, even though staff recognised he was a potential danger, according to an independent inquiry four years ago.