The Halyard rope is threaded through the pulley at the top of the flagpole and then tied around the cleat at the bottom.  This video details step by step instructions on how to update your Halyard rope.