Split path in sub steps for a better Z calculation