WT median scripts added