Multi variable fitting