Added forking to rep, and downsized the buffers