Reformatting the routing code