More elegant test for changes. Eliminates unneeded variable.