Added support for multiple primary keys.