Added decrypt function (not yet debugged)