Do the same on the client