Added reading in of secret Key by the client.