Updated for latest AgMIP libraries