Reset flag every 2 seconds