Adding pause/resume to node streams