Added a variable to return the search time taken.