Allow to have multiple items with different types.

Needs to be tested.