Changes to callback of getroutes