Article 253 of the Criminal Procedure Law stipulates that if the remaining sentence of a prisoner sentenced to fixed-term imprisonment is less than three months before delivery for execution, the detention center shall execute it on his behalf. A criminal sentenced to criminal detention shall be executed by a public security organ.