Setting up readonly mode.