Added the ability to use file name instead of file path.