Wrap whole app in Main module