Add lengthBag to Bag (using in forthcoming patch)