Some changes to script getOptions()