Removed useless logarithm and variables