Add the `which` method.