Created decryption function