Working on testing all of my old functions. Having problems with memory leak.