Had to fix some misnamed variables in xform