Fixing createItems to create items in series

Resolves potential issues relating to duplicate keys