Put app.run() in main routine