Adding category views
Total count is global now
Debug mode added