Renamed to loop-state.
Renamed main to user.
Renamed loop state vars with suffixes.
Using symbols instead of streams for event labels.