Replaced num_of_results by num_results