Moving processing to the server