Implemented NewBag functionality.