Added possibility to pass the elements of a unordered list