Change detection by checking inclusion in newTokens array

Fix for #21.