Added getters for prev_error and sum_errors