Todo: rewrite Go mode to handle interrupts.