Changed how primary keys are created.