Fitting of both datasets.