Added alerts and data clearing