Added code to load the private key, It currently segfaults..