Added ability to encrypt.