Improved permutation and state interface, extended duplex functionality, renewed headers