Added factorization method