Wrap chi2 and rfactor calculation in to one curve comparator - use this in sct.tasks