Added alerts to display the results.