Use Array instead of Set in Pruner to ensure order preservance