Change model and fitting from Long to Double values