Add code to parse the grafts file.