Added check on distance for red lights