Copied in CDC class from Shib