Fixed results not logging correctly.