Tried some mac fixes

New Mac Version. More reliable code.