Added getStats() function, it returns the same data as the statusInfo event