Added node module requirements and more processing logic