Optimized the Routing