More work in progress - need to define correct iterator for the bag