Cleanup up debug messages
Slowed down the processing of state changes and skip the first frame