Add ambiguous resolve function