Working on the state unpacking.