Get dynamic iterator working