An error with limit != '>' was not correct, because we call function for distances to get DM, but this argument is essential when we call function to get D by DM.