Started to define a method to exclude unnecessary points on the route