Better usage of the pipe/stream functionality of node.