Added readonly attribute support