Define the main script.