Added the new and improved version (with AIC and BIC model comparison!)