Now paths are created in a different function