Removed some uses of 'compare' in favor of comparison operators.