Added advanced killing to kill scripts.