Added possibility to set attrs