Basic garbage collection works