Added readonly mode + test.