Tidied script