Library code to support the Zinc API