Added weights for quality params for optimization