Added a function to help archive beacon data