Added a selection for correction method and corrected the math for the
corrections.