Added readOnly mode