Added logging to app.js