Does the new `{Key, Value}` pair have to be at the end of this list? If not, it would be more efficient to use `[{Key, Value} | List]` instead of `lists:append/1`. Or, `lists:keyreplace/4` could be used instead of filtering first and then adding.