def limit_results(numResults, results):
    """
    Limits results to numResults
    """
    if numResults < results.count():
        return list(results[0:numResults])
    else:
        return list(results)