Removing unneccessary timer interrupt when not needed