Made a lot of interrupt-usage variabled volatile.