Properly deals with log scales