Working for both win/mac