Changed how resolution is done to return the most recent matching resolution.