Cart code with timer interrupts