Add readonly attribute to member