Generating script with schema.