Add manual garbage collection to assure memory deallocation