Removed console log and updated comments