Created new functions. Errors in get_gmm_AIC.