Added -w option to use wget instead of curl