Added DEF, MAT, RAT, SPC, and TSC
Reworked attribute handling in utility.js