Adds attr accessor to guest