Integrating the code