Corrected logic so that proceed_to_next_user_action() works correctly