Turning the app into a module