Updating package to use nan