Re: set_current_state() use in loops confusion