Reworked server for more than one client.