Use a function instead of an accumulator for the attribute computation and add height and dynamic attribute