Added BST validation.