Now works with file names too.