It works! Need to track down a segfault and make a reshuffling function.