Add Ks to the script.