Added maxAlerts config property and removal of excess alerts