Added optional whenPublished field (#768)