Some work on sync. Sync if we shut down. Make a synchronous option.