Added delay to external interrupts