Initial code for worker node, untested