The back-end for RouteMaster