Added the discrete logarithm