Working on automating matrix_factorization