Fixed PruneDetection; Added weight feature.