Using the route function to direct traffic