Adding completed tasks for Memory management