Using path instead of doing a manual calculation for each segments. It\'s now possible to stop using a the partition.