Changed console logs to alerts