Changed routing to take in start and end points.