Figure 1 is diagram of both client and server side processing.