Moved pattern matrix and data packer.