Shored up the equals implementation.