Removed console output in working code.