Added ability to specify max phrase size and min word count.