Adding function definitions to search options