Moved the main program to the init module