Harley Davidson workers at the Kansas City plant have agreed to a new seven-year contract that includes a change in the way the factory is operated.

The plant near the Kansas City International Airport has 685 full-time hourly union workers. But the company plans to cut that number to 540 and make 145 positions flexible slots filled by union workers only when the company needs them to meet demand.

Harley-Davidson had said it might move production to Pennsylvania without the agreement.