Significant clean-up to the LOTAAS scripts.