Script is shaping up. Have added separated calls into functions with beginning attempts at control flow