Added chi-squared test