Finished update script in Dart