Added method for update operation