Added alerts to the return array