[PD] Recording a stream of data