you could also increase a float when leaving the track. if the penality is too large, the lap is not counted