Works, but very slow - pruning needs fixing