curl and wget also added to code. Some weirdness in execution of curl