Use an array index instead of an iterator in root list