chaning the default max_distance to 16383 as we actually start counting at zero, thank you dahlia for pointing this out.