Removed console log code