Make it possible to determine the list type at runtime and make them both interchangable