Add frite file function