Alerts, recieving format and refactor