Tidying retest script