Added a lot of GC, removed a lot of debug print statements