The output should now be properly shorted. Also added an --index option.