Cleaning up node check