Update resolve function