Added diff_words function.