ML code runs and interrupts correctly