Key generation now a part of the model.