dynamic loops work now.