Indent/style nits
Refactor do_state_checks - returns false if paused