Make the alert optional and seperate it out from data.