Implemented logarithmic scale properly