Updated key script.