Refactoring: Removed extra console.log statements.