Changed how primary keys are created.
Merge branch 'refs/heads/ARC/develop' into ARC/master