Updated code to work with just URLs.