Print final precision

Slightly changed the structure of the main loop.