Optimized: Added tests and translations to input tolerance.