Add parse from file function