Potentially working version of the HLS distribution module