Changed input, output buffers to pointers.