Added explicit loops for data bag creation.

Change-Id: I22c7c87cae850ff0bbd40fb51cd62fcd239aba26