Design document for stats gathering