Added some garbage collection.