The Duke of Sussex made a surprise appearance.