Added Stats widget code