Added readonly state manipulation