Updated to use interrupts for same time trigger