Refactored NetworkReceiver in Spark Streaming to allow for a