Refactored code to reflect attributesKey instead of attributes namespace