Clean up
Refined precision detection