Then add new variables as above of degree 1 to kill off all elements of the ideal M in the homology.
Then introduce new variables of degree 1 to nullify all elements of the ideal M within the homology.