Accepts urls and files as input and processes correctly.