Added extern linkage to streaming