Added working server reading in separate thread