Use eq() and neq()

Fixes #2.