Adding pitch type randomized optimization class.