Converted release system to a state machine.