Changed check for interrupts to every 32 steps. Removed some unecessary checks