Cleaned up node script