Added code to fit model to concatenated data