Added a simple one level garbage collector.