Added max capacity to segment buffer
Added plain adaptation logic
New buffer with max capacity in segments