More memory management
Added GC tracking, lots of leaks to plug.