Updated mex request to work every time