Added sanity check of moments.