Added Max number of results to searching.
Added test