Fixing colors on state change
Generating timer