Optimisation and Volatile declaration of isr variables