Removed console log for debugging.