Two Sides of Appraisal: Implementing Appraisal and Its Consequences within a Cognitive Architecture