Add common resolver function.