Model with average distance
Corrected fetchparams and showparams to handle avgdist