Finalizing the compile script logic