This seems to be usable by both the client and the server lib.