Implement route generation