Routing Algorithm.