Some more precautions against monkey patching.