Rearrange the program so that all the module can work dedicated.