Removed printf that was causing buffer to include rubbish characters when sending data to clients. Needs adding to debug routine.