Move onlineMode from client to server.