Updated pretest script