Move the results processing from client side to server side