Add documentation for 'nextSearchTerm' function.