Split main process to small objects.