Limit result size to 5000.