Set up client/server structure