Use tree for rule list