Outlined general structure of script