CheckGC function

Conditional Garbage Collection