Added ability to iterate through attributes in scala