Changed call to console