Cleaned up the node server code.