Adding in-stream fragmentation