Added option parsing to SetLegacyStatus script.