Result calculation.