Added decyphering function