Adding functionality to app.