Please give this function a name. like `input.on('end', function inputEnd() {`. Just something to help us track things down from performance and debugging logs.