Added decrypt logic.