Include function copied from label to allow embeds