Using event triggers to avoid specific commands