Added Event handler functions for Beacon and Data