Generating Pet files