Allow app to be loaded as a module