Integrate with hmetis