Added support for setting attributes