Integrating Paola code