Tranfered to BigInteger instead of log among other things