Added returnEmbedded parameter.