Re-Made Server side
Now using buffered readers and reads one line at a time