Use resolve method.