Added a "Compare" function.