Added some methods to math