Adding helper logarithm functions.