Added embed function