Refactored member accessor code.