MaxAPriori and ClosAPriori updated