Now accepts single file or directory of files