Added writeAndFlush. Getting rid of println's