Ordained in the Church of England in 1764, Newton became curate of Olney, Buckinghamshire, where he began to write hymns with poet William Cowper. "Amazing Grace" was written to illustrate a sermon on New Year's Day of 1773. It is unknown if there was any music accompanying the verses; it may have been chanted by the congregation. It debuted in print in 1779 in Newton and Cowper's Olney Hymns but settled into relative obscurity in England. In the United States, "Amazing Grace" became a popular song used by Baptist and Methodist preachers as part of their evangelizing, especially in the South, during the Second Great Awakening of the early 19th century. It has been associated with more than 20 melodies. In 1835, American composer William Walker set it to the tune known as "New Britain" in a shape-note format. This is the version most frequently sung today.