Added log height scaling.