Removed console.log statments and fixed typo