Adds support for primary keys.