Removed 'search' function as it was not being used