Generator script