Update method for OP algorithm