Added some maths methods.