Modified Danaides to track memory de/allocation and net change.