Move the resolved flag to the public APIs and the constructor.