Added log10 impl.