Adding logic for corrected answer.