Added datalink debug functions