Previous code review.
Put everything in the same callback os_in_readonly_mode()