Copy of TEST CODE FOR EMBED