Removed console.dir() from code