In rain conditions, officials may start the race under the safety car, and wave the green after a few laps have been run under such conditions. In that situation, all Safety Car laps count towards the race distance, but in IndyCar and NASCAR, only after both green and yellow are waved together (some laps may be run beforehand that do not count). However, officials may only allow the laps to count if the green flag is the next flag to wave and not the red flag, and officials may discard all laps run if cars do not complete a lap under green flag conditions. This procedure may be used by officials in an attempt to reach the race to official race status (halfway or three-fourths).