Added priority filtering.