Script can now handle n successive traces