Added torque pattern generator.