Updated to use in memory comparisons