Two global fit functions