Loading works. Some bugs in the algorithm.