Less glitchy event detection