Moving linear index out of to-cg for iteration purposes.
Adding production target and committing working production that will need to be updated.
Added iteration.