Simple multi-event detection
Edited a bit