Created the main process.