Refactored to HLS protocol