Added ability to designate main module