Add generateKey and deleteKey