`List` is not the best sequence for appending, maybe use a `ListBuffer`. On the other hand, these are very short lists, just pointing it out.