Added RandomandLast script support