Lite version for embedding into other code. Removes guessing.