Setting up server/client structure.