Added forward distance calculation.