This could be done nicely in a list comprehension, but it would cause so many merge conflicts, let's just deal with that later.