Fix number of steps.
Update generated primitives.