Incorporating phrase.R; slightly different method.
Minor corrections.