Implement MPV fit by Bon

Use fit function used by Bon in the publicdb for quality test
Better reliability than previous function