Use write instead of append when adding to phrase file