Finished a working version of the node