Adding the main script.