Added support for read-only mode via System property