Added main process.