Added saveAs support.