Adding stubs for detached targets