Changed output logic for decrypt