Changed alert to console