Added support for alerts. Closes #11