Final working version of the app.