Add getKey and savePrincess functions.