Needs a deep copy of templates run to reuse it
Many improvement and cciss code, can now add ld to an array.