Bug fix: removed console.log statement