Adding embed functionality