Another crack at the routing problem. Still too slow.