Added code that sends beacon data back to the server to be analyzed