Added logger, adding more math functions