Added decrypt logic