Added proactive garbage collection