Added some methods for paths, also the route didn't need to be computed more than once.