Added detection for CollectGarbage()