Server was not performing a deep copy of temporary variables
Removed some debugging statements
Changed a printf to an fprintf since buffer would not flush