Function to route the modules.