Adde verification of interrupt flag.