Added check for no file name