Updated quality script