Added stats and styles
Fix issue with empty result sets