Improved details of garbage collection function