Updated with more checks.
Add URL fetching with --url option.