Updated get_num_with_err