Added simultaneous fitting for models with different structures.