Initial steps of integration code