Add mean_qual method