Initial commit.
Work in progress on shuffling and checking before collapse.