Implementing the router and module manager