Added curve update logic