Garbage collection and filter