Added some more manual memory checks to stop leaks on large runs