Added URL fetching to script