Modified Macdonald Polynomials and Integrability