Fixed enter, update, and exit cycle