Flash Detection and Error Window