Removed ByteArrayOutputStreams.  Added byte array concatenation.