Tests green.
Added math functions.