Added local fitting