Optimizing routes and stops