Enforce readonly mode better.