Factor max prints private and public keys, Fixes #1