Fixed lastFile; temporarily removed infoDialog code