Added ability to save keys, stub for loading.