Updates the comparator interface for better extensibility