Restructered code, basic beacon ranging