Made mods to handle either an input file or input url