Added alerting and a cache file to we can maintain state between runs.