Added code for reporting to StatHat