Detecting flash