Updates attributes and adds conditional update