Initial state machine design