Adding the state machine current state resource.