Trying to fix logic errors on flashing buttons.