Before changes
Improved apriori