Re #9028. Adding an optional scale factor for output data.