Create main script.