New state model
Commented state system
State change called from main loop