Added settings and changed the way active families are determined.