Added logarithm method