Added a function to change attributes

While somewhat trivial of a function, it saves about 1 line of code, so it pays itself off </lazy>