Reduce dependency on Attach API in embedded use cases