for IWP - Embed function.