Added controller to disable read-only mode