Check for mex too.