Some math functions added