Paths
Optimised some maths