Remove memory checking code