Add comparison methods.