Changed machine class to handle incomplete received data