Updated with features of script.