Add ability to define objects as modules