Begin state machine for Core