First version of the server side