Dynamically decide instance to attach to.