Improved restrict misuse checks.
I made a tweak.