Create getter/setter for field attrs