Made max-size of ser. buffers configurable.