Added another couple of functions to manipulate the key store.