Updated to read url instead of filepath