If you're going to slice it here, might as well just add them and then slice it. There's no need for the `if len(docs) < 20...` check.