Changed save interface to OutputStream.