Fixed stop logging and added update script