FIX   // Get state machine ready for callbacks