Added some basic math functions