Added alerts to the else section.