Refactoring access method after addition of handling multiple attributes.