Alerts removed. Console.log's added.