Adding better log to index.js