Adding support for encryption of messages.