Cleaning up node code