Added `depth` keyword to FlattenSelectorCallback.