FIxing the issue of doubles and precision