Simplified state-loop.
Renamed to state-next.