Some improvements to the memory process check.