Added scale and vertical offset functions