Basic idea of event triggered garbage collection.