Making it match the MATLAB logic