Add ability to filter items searched for in validate function.
Update docs to match.