Added primary-key fn.