Adds handling of GC
Adds some more handling, GC still not working