Configuring collection and adding keys.