Added iota to complete lattice and fixed calculation of flow when using 'seq'