Support for arbitrary stubs