Add `which` method.