Finished the Embed function