First implementation of the routing system