Evaluating behavior by its consequences