Added ability to search for record using an external field.