Implenting the update procedure