Library code for other UPO projects.