Refactored out the hard coded attribute name and type