Adding all the routers to the correct link.
Module switching code.