Start multiple module instances code

Much refactoring to do