Changing code to script to download from github