Changed the way to get the list of routes