NEW: A resolve function.