Added logarihm to metropolis