Updating to add putBatch function