Repackaged for npm deployment.