Fixing Resequencing script's logging problem