Add PID field to datastream documents