This section applies if—
If the person applies to the appropriate judge to be discharged, the judge must order his discharge.
The required period is the period of 2 months starting with the appropriate day.
If before the required period ends the Secretary of State applies to the appropriate judge for it to be extended the judge may make an order accordingly; and this subsection may apply more than once.