Added equals method.