I am expecting to find multiple tuples with the same key, which is why I am filtering these out. lists:keyfind/3 seems to only return the first matching tuple, which makes it unsuitable here in my opinion.