Added attribute initialization code
Added interface and implementation to update the attributes on changes