Removed console logging from one place, and put it in another place