Added step 2 and converted to BigIntegers. Added blank log function.