Adding decrypt logic