Added ability to add attributes to els