Making the script more platform agnostic