Progress on main process async stuff. Now compiles.