Add simple garbage collection.