Add contains method.