Separate debug from stats
Removed unused import