 Yang Yin, who was prime minister at this point, therefore set up a group of condemned prisoners to be available to the palace guards—if Emperor Wenxuan wanted to kill someone, a condemned prisoner would be brought out for him to kill, and if a prisoner was able to survive for three months without being killed, he would be set free.However, even in his erratic behavior, Emperor Wenxuan was still attentive to many important matters, and because of his harshness, his officials did not dare to be corrupt.Further, Yang was a capable prime minister, and Emperor Wenxuan gave him full authorization to carry out laws properly.