Various fixes to the app.