Added the decryption functionality