Modified garbage collector