Added elimination ideal calculation.