Algorithm refined to include most common words