Got rid of console errors, partly excluded beacon ranging code