Added comparison functionality