Refactored accessor definition into methods