Reintroduced resolveValues function.