Conditional alerts

Issue: #52