Backporting the Multiplayer library and its test.