Cleaner code and smart maths