Updates to use the return of the decryption function.