Added ability to specify scale.