Updated SearchMechanism interface to include a means for accepting a foreign IsSafe function. Updated existing SearchMechanisms to utilize this change.