Am now properly handling case when no file is given