Added basic route generation logic