Implemented LabelFilter.