Refined code to reduce the memory leak. Issues lies with OLD GEN objects
at a suttle rate not being fully GCed back to normal levels.
Closing out until reformat of program