Added a status variable for each of the nodes, and updated the worker node API. Slightly optimized code.