Lots of refactoring attempting to get attributes.