Protect auto commands with groups