Stop using readonly for flag variables.