Wrapped up script.  Can and Should be tested.