Converted all maths to base 10.