Added command-line option to specify app.