Perform asynchronous operations to avoid async void methods.
Serialize binary data.
Defer creation of peer ID until necessary.