Updated decryption code