Added support to log scale.