Added skeleton of the client-side calculations.