Adding debug info for encryption