Add consecutiveCount support
Add remove_orphan_alarms flag