Creating master rule groups