Nested loop in @mtkmodel / Matrix manipulation

This might be easier to do without the macro.