041620142210: Created function for updating log segments.