Updated script code and license file.