Changes to WrapitemsIn... so it can be used from external Code