Added lots of maths functions.