Added logging to the update script