Add max buffered size to writer