Switched from process.nextTick to setImmediate.
'chunk' should be 'source' here. (chunk is not defined in this scope.)