Frontend. Sending result to server.