Add checking for Paused state during main loop