PluginPackMeasurs: Improve fitting algorithm