Update complete code for main business