Added a function that will perform the client-side operations.