Modified latest version to work with NodeJS again.