Add per-group chi2; ability to send parfile as string.