First pass at the script, no testing performed