Flash logic

This looks like it was for debugging. Probably remove it once you've confirmed whatever it was for.