Tweaked client to work with preliminary pthread server