FIXUP Templatized foreach
Work in progress!